// Package registry defines the task registry interface for GoCelery
package registry

import "gitee.com/yuebanlaosiji/gocelery/pkg/types"

// Registry is the interface for task registration and lookup
type Registry interface {
	// Register a task
	Register(name string, handler types.TaskFunc) error

	// Get a task by name
	GetTask(name string) (types.TaskFunc, error)

	// Check if a task exists
	HasTask(name string) bool

	// List all registered tasks
	ListTasks() []string
}
